package com.pc.service;

import com.pc.enrty.User;
import com.pc.pojo.Basic;

import java.util.ArrayList;

public interface UserService {
    /**
     * 根据username，password，查询user表信息
     * @param user
     * @return user
     */
    ArrayList<User> findByUsernameAndPassword(User user);

    ArrayList<User> findByUsername(User user);

    /**
     * 插入用户表，username，password，email
     * @param user
     * @return boolean ==1?true:false
     */
    boolean addUser(User user);

    /**
     * 修改昵称
     * @param user
     * @return
     */
    boolean updateNickName(User user);

    ArrayList<Basic> qureyPhoneById(User user);
}
